-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
token 2022: add InitializeMember
instruction from SPL Token Group interface
#5629
token 2022: add InitializeMember
instruction from SPL Token Group interface
#5629
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
c28bc25
to
e52e102
Compare
f16668e
to
b2f1959
Compare
e52e102
to
5f3942d
Compare
b2f1959
to
12dfa57
Compare
50f7ad7
to
5f75990
Compare
bbd4c02
to
c9ec232
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one's ready for another look as well!
9ab3658
to
2aa4fcc
Compare
d674818
to
9c4d472
Compare
447f098
to
8d2e4ec
Compare
9c4d472
to
cb4de48
Compare
8d2e4ec
to
143792c
Compare
cb4de48
to
106a697
Compare
b3a3295
to
2a56a1d
Compare
@joncinque I'm still debugging some weird behavior on this one. It seems like every once in a while, the transaction error for Edit: I revisited this a bit, and it seems like the ordering of the
and sometimes
but haven't narrowed down why exactly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small points, this is looking good!
Regarding your question: the issue likely has to do with the ordering of the pubkeys in the transaction -- since you're generating random keypairs, sometimes one account will appear before another one in the BTreeMap of compiled account keys. If you want to test it for sure, you can check the ordering of the keypairs that you generate, or maybe simpler, just use keypairs from static arrays like [1; 32]
106a697
to
fbcb302
Compare
18502c4
to
2d39f9c
Compare
Are we at all concerned with this behavior? In other words, is it worth looking into ensuring the order of accounts is first dictated by role and then secondarily dictated by the order in which it appears in an instruction? As I type it out, probably not, but thought I'd ask. |
The behavior is actually dictated in that way, and it's also sorted by pubkey. So if you have two writable accounts in a transaction, by definition the "lower" pubkey will appear first. |
I think I'm specifically tunnel-visioning it around this use case I encountered. Even if I did attempt to change it to something else, it wouldn't make debugging transaction errors like |
fd1b5de
to
1c934b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1c934b1
to
c8b6093
Compare
Pull request has been modified.
Merge activity
|
This PR adds the
InitializeMember
instruction to Token2022 - from the SPL Token Group interface.